package com.qn.utils;

/**
 * @since 2020/12/16 9:53   @author 老谢  @version 1.00
 * Description 用来封装servlet传给前端的数据
 */
public class Msg {
    private boolean flag;
    private String message;
    private Object obj;

    public Msg(int obj) {
    }

    public Msg(boolean flag, String message, Object obj) {
        this.flag = flag;
        this.message = message;
        this.obj = obj;
    }

    public Msg(boolean flag) {
        this.flag = flag;
    }


    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    @Override
    public String toString() {
        return "Msg{" +
                "flag=" + flag +
                ", message='" + message + '\'' +
                ", obj=" + obj +
                '}';
    }
}
